package com.gensdai.leliang.common.activity;


import android.os.Bundle;
import android.preference.PreferenceFragment;

import com.gensdai.leliang.R;
import com.gensdai.leliang.base.BaseActivity;

/**
 * Created by zsxx on 2017/6/27.
 */

public class SettingFragment extends BaseActivity{

    @Override
    protected String getTitleStr() {
        return "开发模式设置";
    }

    @Override
    protected boolean isShowBackButton() {
        return false;
    }

    @Override
    protected boolean isCustomTitle() {
        return false;
    }

    @Override
    protected int getLayoutResource() {
        return R.layout.settinglayout;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getFragmentManager().beginTransaction().replace(android.R.id.content, new PrefsFragement()).commit();
    }

    public static class PrefsFragement extends PreferenceFragment {
        @Override
        public void onCreate(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
            super.onCreate(savedInstanceState);
//            addPreferencesFromResource(R.xml.settingprefrence);
        }
    }
}
